import request from '@/utils/request'

//列表
export function listmanager(query) {
  return request({
    url: '/system/store/manager/list',
    method: 'get',
    params: query
  })
}
//详情
export function getItemProduct(id) {
  return request({
    url: '/system/store/manager/' + id,
    method: 'get'
  })
}

//新增
export function addItemManager(data) {
  return request({
    url: '/system/store/manager',
    method: 'post',
    data: data
  })
}

//修改
export function updateitemProduct(data) {
  return request({
    url: '/system/store/manager',
    method: 'put',
    data: data
  })
}
//删除
export function delitemProduct(id) {
  return request({
    url: '/system/store/manager/' + id,
    method: 'delete'
  })
}

export function listMemberRegion(query) {
  return request({
    url: '/system/region/addList',
    method: 'get',
    params: query
  })
}
export function listMemberStore(query) {
  return request({
    url: '/system/store/pullDown',
    method: 'get',
    params: query
  })
}

export function listpullDownlist(query) {
  return request({
    url: '/system/item/type/pullDown/list',
    method: 'get',
    params: query
  })
}
export function liststorelist(query) {
  return request({
    url: '/system/item/region/pullDown/list',
    method: 'get',
    params: query
  })
}